class CustomError extends Error {
  constructor(para = []) {
    super();
    const [errMsg = '服务器异常', errorCode = 999, statusCode = 200] = para;
    this.errorMsg = errMsg;
    this.errorCode = errorCode;
    this.statusCode = statusCode;
  }
}

module.exports = CustomError;
